﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="VisitForecast.aspx.cs" Inherits="Wicresoft.RDW.Forecast.VisitForecast" %>

<%@ Register Src="../UserControls/PagerControl.ascx" TagName="PagerControl" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="main_title">
        <h2>
            <%=Resources.NameResource.title_visitForecast%></h2>
    </div>
    <div class="visitforecast">
        <div class="visitforecastContent HistoryApplicationContent">
            <asp:GridView ID="gvForecast" runat="server" AutoGenerateColumns="false" DataKeyNames="VisitRequestId"
                OnRowDataBound="gvForecast_RowDataBound" OnSelectedIndexChanged="Select_Command"
                AllowPaging="true" Width="100%" HeaderStyle-CssClass="dcTableHeader" RowStyle-CssClass="dcTableAlternatingItem"
                AlternatingRowStyle-CssClass="dcTableItem">
                <Columns>
                    <asp:BoundField ItemStyle-Width="40" />
                    <asp:BoundField ItemStyle-Width="140" />
                    <asp:BoundField ItemStyle-Width="130" />
                    <asp:BoundField ItemStyle-Width="130" />
                    <asp:BoundField ItemStyle-Width="130" />
                    <asp:BoundField ItemStyle-Width="185" />
                    <asp:BoundField DataField="CompanyName" ItemStyle-Width="285"/>
                    <asp:BoundField DataField="PersonNum" ItemStyle-Width="135" />
                    <asp:BoundField ItemStyle-Width="140"/>
                    <asp:BoundField DataField="Purpose" ItemStyle-Width="285"/>
                    <asp:BoundField DataField="MainPersonName" ItemStyle-Width="285"/>
                    <asp:BoundField DataField="MainPersonTitle" ItemStyle-Width="285"/>
                    <asp:BoundField DataField="AccompanyManager" ItemStyle-Width="185" />
                    <asp:TemplateField ShowHeader="true" ItemStyle-Width="100">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtnAction" runat="server" CausesValidation="False" CommandName="Select"
                                Text="<%#Resources.NameResource.LinkButton_ToDesc%>" CssClass="CommandButton"></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <EmptyDataTemplate>
                <table>
                    <tr class="dcTableHeader">
                        <th Width="40">
                        <%=Resources.NameResource.No%>
                        </th>
                        <th Width="155">
                        <%=Resources.NameResource.Visit_Date%>
                        </th>
                        <th Width="130">
                        <%=Resources.NameResource.Visit_Time%>
                        </th>
                        <th Width="185">
                        <%=Resources.NameResource.Location_Name%>
                        </th>
                        <th Width="185">
                        <%=Resources.NameResource.Lab_Name%>
                        </th>
                        <th Width="185">
                        <%=Resources.NameResource.Visit_Linkman%>
                        </th>
                        <th Width="285">
                        <%=Resources.NameResource.Visit_CompanyName%>
                        </th>
                        <th Width="220">
                        <%=Resources.NameResource.Visit_PersonNum%>
                        </th>
                        <th Width="285">
                        <%=Resources.NameResource.VisitRequest_VisitorType%>
                        </th>
                        <th Width="285">
                        <%=Resources.NameResource.VisitRequest_Purpose%>
                        </th>
                        <th Width="285">
                        <%=Resources.NameResource.Visit_MainPersonName%>
                        </th>
                        <th Width="285">
                        <%=Resources.NameResource.Visit_MainPersonTitle%>
                        </th>
                        <th Width="220">
                        <%=Resources.NameResource.Visit_AccompanyManager%>
                        </th>
                        <th Width="100">
                        <%=Resources.NameResource.Action%>
                        </th>
                    </tr>
                </table>
            </EmptyDataTemplate>
            </asp:GridView>
        </div>
    </div>
    <uc1:PagerControl ID="PagerControll" runat="server" />
</asp:Content>
